<html>
<head>
<title>EYAD website</title>
<link href="../styles/styles.css" rel="stylesheet" type="text/css" />
</head>
<body>

<div id="header">

	<h1 id="logo">Eyad Obeid's Website</h1>

	<h2 id="slogan"><?php echo $_GET['album']?$_GET['album']:"";?></h2>
	<h3 id="title">title</h3>

</div>
<div id="hr">

</div>
<div id="wrap">

	<div id="content-wrap">

		<div id="sidebar" >							
			
			<h1><a href="menu.php?page=profile">Profil</a></h1>
			
			<h1><a href="menu.php?page=portofolio">Portofolio</a></h1>
			<ul class="sidemenu">
			
<?php			

$albums_dir = opendir('../photos/');

while ($album = readdir($albums_dir))
{
	$path_album = '../photos/' . $album;
	if (is_dir($path_album) && $album != '.' && $album != '..' && $album != '.svn')
	{	
		echo '<li><a href="menu.php?album=' . $album . '" >' . $album . '</a></li>';				
	}
}
closedir($albums_dir);
	
?>			
			</ul>		
			
			<h1><a href="menu.php?page=contact">Contact</a></h1>

		</div>	
	
		<div id="main">	
			
			<?php
			
			$main_page = $_GET['page'];
			$current_album = $_GET['album'];
			
			if (isset($current_album))
				include('viewer.inc.php');
			else
			{
				if (!isset($main_page))
					include("profile.inc.php");
				else
					include($main_page . ".inc.php");
			}
			?>
	
		</div>
		
	</div>

</div>



<div id="footer">

	<div class="footer-left">
		<p class="align-left">
		&copy; 2009 <strong>Eyad Obeid</strong> |
		Design by Bruno Malaquin |
		Valid <a href="http://validator.w3.org/check/referer">XHTML</a> |
		<a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>
		</p>
	</div>

	<div class="footer-right">
		<p class="align-right">
		<a href="menu.php">Accueil</a>&nbsp;|&nbsp;<a href="menu.php?page=contact">Contact</a>
		</p>
	</div>

</div>

</body>
</html>